package com.edoomath.api.servcice;

import java.util.List;

import com.edoomath.entity.course.wechatgroup.WechatGroup;

/**
 * 
 * @author mohanlan
 *
 */
public interface WechatGroupService {
	
	/**
	 * 
	 * @param id
	 * @return
	 */
	public WechatGroup loadWechatGroup(String opengid, Long courseId);
	
	/**
	 * 
	 * @param opengid
	 * @return
	 */
	public WechatGroup loadWechatGroup(String opengid);
	
	/**
	 * 
	 * @param id
	 * @return
	 */
	public WechatGroup loadWechatGroup(Long id);
    
    /**
     * 
     * @param groupName
     * @return
     */
    public List<WechatGroup> search(String groupName);
    
    /**
     * 
     * @param wechatGroup
     * @param opengid
     */
    public void bindOpengid(WechatGroup wechatGroup, String opengid);
}
